﻿using DTcms.Common;

namespace DTcms.Web.Mvc.UI.Page
{
    public partial class jumpurl : BaseController
    {
        protected string url = string.Empty;
        protected string redirect = string.Empty;//回传地址

        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        public jumpurl()
        {
            url = DTRequest.GetQueryString("url");
            if (!Utils.IsUrl(url))
            {
                redirect = linkurl("error", "?msg=" + Utils.UrlEncode("地址不合法！"));
                return;
            }
        }
    }
}
